﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using _10_Panel_嵌入式窗体.窗体;

namespace _11_Mid窗体
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 系统设置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 系统设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_SystemSet frm_SystemSet = new Frm_SystemSet();
            frm_SystemSet.MdiParent = this;//设置父窗体，此时主窗体要设置为IsMdiContainer=true
            frm_SystemSet.Show();
        }
        /// <summary>
        /// 系统日志
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 系统日志ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_LogSystem frm_LogSystem = new Frm_LogSystem();
            frm_LogSystem.MdiParent = this;
            frm_LogSystem.Show();
        }

        private void 授权管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_License frm_License = new Frm_License();
            frm_License.MdiParent = this;
            frm_License.Show();
        }

        private void 帮助文档ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frm_Helper frm_Helper = new Frm_Helper();
            frm_Helper.MdiParent = this;
            frm_Helper.Show();
        }

        private void 横向排列ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void 纵向排列ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileVertical);
        }
    }
}
